<?php namespace App\Admin\User\User;

use App\Core\Model as BaseModel;

class Model extends BaseModel {

    protected $table = 'user';
    protected $primaryKey = 'id';

    public function orders(){
        return $this->belongsTo('App\Admin\Orders\Orders\Model', 'deposit_order_id', 'id');
    }

    public function enterprise(){
        return $this->belongsTo('App\Admin\Enterprise\Enterprise\Model', 'enterprise_id', 'id');
    }

}